Skip to content

Conversation

elprans
Copy link
Member

@elprans elprans commented Jan 20, 2018

Currently the statement codecs are populated just before the first Bind
is issued. This is problematic as in the time since Prepare, the codec
cache for derived types (arrays, composites etc.) may have been purged
by an installation of a custom codec, or general schema state
invalidation.

Fix this by populating the codecs immediately after the statement data
types have been resolved.

Fixes: #241.

@elprans elprans requested a review from 1st1 January 20, 2018 19:16
Currently the statement codecs are populated just before the first Bind
is issued.  This is problematic as in the time since Prepare, the codec
cache for derived types (arrays, composites etc.) may have been purged
by an installation of a custom codec, or general schema state
invalidation.

Fix this by populating the codecs immediately after the statement data
types have been resolved.

Fixes: #241.
@elprans elprans force-pushed the fix-stmtstate-codec-race branch from 4bdb32a to f789131 Compare January 20, 2018 19:31
@elprans elprans merged commit 803c115 into master Jan 21, 2018
@elprans elprans deleted the fix-stmtstate-codec-race branch June 11, 2018 16:33
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Intermittent "RuntimeError: no decoder for OID 1015"
2 participants